package com.yellow.userservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 
 * @TableName user
 */
@TableName(value ="sys_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Schema(title = "用户信息")
public class User implements Serializable {
    @TableId(value = "user_id", type = IdType.AUTO)
    @Schema(title = "用户主键id")
    private Integer UserId;

    @TableField(value = "user_name")
    @Schema(title = "用户名")
    private String UserName;

    @TableField(value = "password")
    @Schema(title = "密码")
    private String Password;

    @TableField(value = "user_email")
    @Schema(title = "邮箱")
    private String UserEmail;

    @TableField(value = "user_type")
    @Schema(title = "用户类型")
    private String UserType;

    @TableField(value = "phone_number")
    @Schema(title = "手机号码")
    private String PhoneNumber;

    @TableField(value = "avatar_url")
    @Schema(title = "头像地址")
    private String AvatarUrl;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}